package com.cmc.cloud.cmclink.doc.api.document.req.si;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.util.List;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 提单查询请求DTO
 *
 * @author 申天青
 */
@Schema(description = "提单查询请求DTO")
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class BlnoPageReqDto extends PageParam {

    @Schema(description = "数据来源", example = "edi 网厅:web 手工:manual")
    private String dataSource;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "订舱人代码")
    private String bkpCode;

    @Schema(description = "提单状态")
    private String siStatus;

    @Schema(description = "提单号")
    private String blNo;

    @Schema(description = "订舱号")
    private String bookingNo;

    @Schema(description = "箱号")
    private String cntrNo;

    @Schema(description = "船名")
    private String vesselCode;

    @Schema(description = "航次")
    private String voyageCode;

    @Schema(description = "接货地")
    private String porCode;

    @Schema(description = "装货港")
    private String polCode;

    @Schema(description = "卸货港")
    private String podCode;

    @Schema(description = "目的地")
    private String delCode;

    @Schema(description = "截止单证补料日期 Start")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String siChangeCutOffStart;

    @Schema(description = "截止单证补料日期 End")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String siChangeCutOffEnd;

    @Schema(description = "创建日期 Start")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String createDateStart;

    @Schema(description = "创建日期 End")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String createDateEnd;

    @Schema(description = "货类")
    private String cargoType;

    @Schema(description = "状态列表")
    private List<String> siStatusList;
}
